<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>测试Thymeleaf标签</title>
</head>
<body>
<p th:text="${hello}" th:value="${hello}">打底值</p><br/>
<table border="1">
    <tr th:each="skuImage,stat:${skuInfo.skuImageList}">
        <td th:text="${skuImage.id}">
        </td>
        <td th:text="${stat.index}"></td>
        <td ><img th:src="${skuImage.imgUrl}" th:width="100px" th:height="100px">
        </td>
        三元运算：
        <td th:text="(${skuImage.id}=='10')?'是10':'不是10'">
        </td>
        If 判断
        <td th:if="${skuImage.id}=='10'" >123456</td>
    </tr>
</table>
</body>
</html>